We're sorry, but you must have Javascript enabled in your browser to access this exercise.

Robot Demo

Watch a robot move around and see its PWM signal change.

It has been programmed to turn away from walls, and to go faster as it gets closer to the middle of the arena. See the PWM signal change with speed, and the bridge switches change when a motor reverses.

If you click on the arena you reposition the robot there. You can also choose to define the left and right speeds when the robot is in the open.

Keyboard controls

P U set program/user mode. In user mode L and R for setting speeds, W to reverse wires.

For moving robot, press I, J, K or M to move it up, left, right or down.

Preprogrammed Speed

When No Wall is found :

User define speed in open

Left motor   Right motor

Reverse Left Motor